package com.sailing.xjpb.common.time;


import java.util.regex.Pattern;

/**
 * 日期相关的常量
 *
 * @author xkzhangsan
 */
public class DateConstant {

    private DateConstant() {

    }

    //===========================异常定义============================
    /**
     * 解析日期时异常
     */
    public static final String PARSE_LOCAL_DATE_EXCEPTION = "Unable to obtain";

    //===========================正则定义============================

    /**
     * 纯数字
     */
    public static final Pattern NUMERIC_REGEX = Pattern.compile("\\d+");

    /**
     * 字母开头
     */
    public static final Pattern START_WITH_WORD_REGEX = Pattern.compile("^[A-Za-z].*");

    /**
     * 中文
     */
    public static final Pattern CHINESE_REGEX = Pattern.compile("[\u4E00-\u9FFF]");

    //===========================时间定义============================

}
